<include file="App/Home/View/Public/header.html"/>
<style>
.ui-btn-inline {
	width: 87%;
	margin-top: 2em;
	background-color: rgba(255,255,255,0) !important;
	text-shadow: none;
	border: none;
	box-shadow: none;
	background-color: #ffc703 !important;
	color: #333 !important;
	text-shadow: none !important;
}
.ui-shadow-inset {
	background-color: rgba(255,255,255,0) !important;
	text-shadow: none;
	border: 1px solid #ffc703 !important;
	box-shadow: none;
	background-color: rgba(0,0,0,0.5) !important;
}
</style>
<!-----------------------------主体内容 开始------------------------------>
<div data-role="main" class="ui-content"> 
  <!------登录表单 开始------->
  <form class="w80p btc_tcoin" method="post" action="" onsubmit="return false;">
    <div class="ui-field-contain padt_5">
      <label for="title" class="ui-hidden-accessible">{$Think.lang.__QINGSHURUYIJIANBIAOTI__}</label>
      <input type="text" name="title" id="title"   placeholder="{$Think.lang.__QINGSHURUYIJIANBIAOTI__}" />
    </div>
    <div class="ui-field-contain padt_5 textarea_sty">
      <label for="info" class="ui-hidden-accessible">{$Think.lang.__QINGSHURUFANKUIYIJIAN__}</label>
      <textarea name="addinfo" id="info" placeholder="{$Think.lang.__QINGSHURUFANKUIYIJIAN__}"></textarea>
    </div>
    <input class="w100p" type="button" onclick="ajaxSubmit();" data-inline="true" value="{$Think.lang.__QUEDING__}">
  </form>
  <!------登录表单 结束-------> 
</div>
<!-----------------------------主体内容 结束------------------------------> 
<script type="text/javascript">
	function ajaxSubmit(){
		var title = $('#title').val();
		var content = $('#info').val();
		if(title == ""){
			layer.msg("{$Think.lang.__QINGSHURUYIJIANBIAOTI__}");
			$("#title").focus();return false;
		}
		if(content == ""){
			layer.msg("{$Think.lang.__QINGSHURUFANKUIYIJIAN__}");
			$("#info").focus();return false;
		}
		$.ajax({
			url:"{:U('Person/suggest')}",
			type:"POST",
			data:{'title':title,"content":content},
			dataType:"JSON",
			success:function (data){
				layer.msg(data.info);
				if(data.status == '1'){
				setTimeout(function(){
					window.location.reload();
				},2000);
					  
				}
			}
		})
	
	}
</script> 
<include file="App/Home/View/Public/footer.html"/>